﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CapaNegocio;
using Excepciones;

namespace CapaUsuario
{
    public partial class ListarClientes : Form
    {
        private Admin admin;
        public ListarClientes(Admin a)
        {
            admin = a;
            InitializeComponent();
            dataGridView1.DataSource = admin.listar("cliente");
           
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
